
function dom(data2) {
    var rel2 = ''
    data2.forEach((value, index) => {
        if (value.zhiying) {
            rel2 += `
                <li>
                <img src="${value.images}"
                    alt="">
                <p>
                    <i>${value.zhiying}</i> <a href="#">${value.text}</a>
                </p>
                <div><span>￥</span> <a href="#">${value.pice}</a><u>${value.pice2}</u></div>
            </li>
                `
        } else if (value.text2 || value.text3 || value.images2) {
            rel2 += `
                <li class="methers">
                <img src="${value.images}"
                    alt="">
                <p class='mether'>
                   <a href="#" class='a1'>${value.text}</a></br>
                   <a href="#">${value.text2}</a></br>
                   <a href="#">${value.text3}</a>
                </p>
                <i style="background: url(${value.images2})"></i>
                <div class="xiaoming">JQY寻宝</div>
                </li>
                `
        } else {
            rel2 += `
            <li>
            <img src="${value.images}"
                alt="">
            <p>
                <a href="#">${value.text}</a>
            </p>
            <div><span>￥</span> <a href="#">${value.pice}</a><u>${value.pice2}</u></div>
        </li>
            `
        }
    });
    $('nav ul').html(rel2)
}

function Get() {
    $.get('../data/live.json', {}, function (data) {
        var data1 = data.username.user;
        var data2 = data1[0].content.contents;
        dom(data2)

    })
}
Get()